import Vue from "vue"
import Vuex from 'vuex'
//用户的vuex模块
import moduleUser from './user.js'
import moduleCart from './cart.js'

Vue.use(Vuex)

 const store =  new Vuex.Store({
	modules:{
		m_cart:moduleCart,
		//挂载用户的vuex模块，访问路径为m_user
		m_user:moduleUser,
	}
})

export default store